package com.chb.system.controller;

import com.chb.system.service.LoginInfoService;
import com.hos.entity.sys.LoginInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author ：张家琪
 * @date ：Created in 2023/12/26 16:38
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("system/logInfo")
public class LogInfoController {
    @Autowired
    private LoginInfoService loginInfoService;

    /**
     * 添加登录的操作日志
     *
     * @return
     */
    @PostMapping("addLogInfo")
    public Integer addLogInfo(@RequestBody LoginInfo loginInfo) {
        return loginInfoService.addLoginInfo(loginInfo);
    }
}